home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / netprog.zip / NETPROG.TAR / fd.s5 / Makefile next >
Makefile  |  1989-12-17  |  566b  |  24 lines

  1. #
  2. # Makefile for file descriptor passing example.  Note that the same Makefile
  3. # can be used for both 4.3BSD and System V.  The only differences in the
  4. # two examples are the files "sendfile.c" and "recvfile.c" along with the
  5. # different MYLIB contents.
  6. #
  7.  
  8. CFLAGS    = -O
  9. MYLIB    = ../libnet.a
  10.  
  11. all:    mycat openfile
  12.  
  13. #
  14.  
  15. mycat:    mycat.o myopen.o recvfile.o $(MYLIB)
  16.     cc $(CFLAGS) -o $@ mycat.o myopen.o recvfile.o $(MYLIB)
  17.  
  18. openfile: openfile.o sendfile.o $(MYLIB)
  19.       cc $(CFLAGS) -o $@ openfile.o sendfile.o $(MYLIB)
  20.  
  21. #
  22. clean:
  23.     -rm -f *.o core a.out temp*.* mycat openfile
  24.